//封装request请求
export default (params)=>{
	return new Promise((resolve,reject)=>{
		wx.showLoading({'title':"正在加载中"});
		wx.request({
			...params,
			success:(res)=>{
				
				setTimeout(()=>{
					wx.hideLoading()
					resolve(res)
				},500)
			},
			fail:(error)=> {
				console.log(error)	
			}
		})
	})
}
